﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace God.ShoppingWebApi.Entities
{
    public class UserRoles : AuditedEntity<Guid>
    {
        /// <summary>
        /// 角色Id
        /// </summary>
        public int RoleId { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Create_time { get; set; }
        public UserRoles()
        {

        }
        public UserRoles(Guid id, int userId, int roleId, Guid? lastfierId)
        {
            UserId = userId;
            RoleId = roleId;
            LastModificationTime = DateTime.Now;
            CreationTime = DateTime.Now;
            CreatorId = lastfierId;
            LastModifierId = lastfierId;
        }
    }
}
